package net.sky.oa.test.dao.ioffice;

import java.util.List;
import org.junit.Test;
import javax.annotation.Resource;
import org.springframework.test.annotation.Rollback;

import net.sky.oa.dao.ioffice.OffSummaryDao;
import net.sky.oa.model.OffSummary;
import net.sky.oa.test.BaseTestCase;

public class OffSummaryDaoTestCase extends BaseTestCase {
	
	@Resource
	private OffSummaryDao offSummaryDao;
	
	@Test
	@Rollback(value=false)
	public void add(){
		OffSummary offSummary=new OffSummary();
		offSummary.setContent("Summary content-test!");
		offSummaryDao.save(offSummary);
	}
	
	@Test
	public void list(){
		List<OffSummary> list=offSummaryDao.getAll();
		System.out.println(list.size());
		for(OffSummary s:list){
			System.out.println(s.getContent());
			
		}
		
	}
}
